<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SC2API: include/sc2api/sc2_action.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="SC2-Logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SC2API
   </div>
   <div id="projectbrief">An API for AI for StarCraft II</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_3d0dfd3160b31ffa512c49330ac8d646.html">sc2api</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">sc2_action.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sc2__common_8h.html">sc2_common.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sc2__typeenums_8h.html">sc2_typeenums.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sc2__gametypes_8h.html">sc2_gametypes.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacesc2.html">sc2</a> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html">   12</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsc2_1_1_action_raw.html">ActionRaw</a> {</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800">   14</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800">TargetType</a> {</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800ad76dbb1f34ebecacde71ea8d7b573a01">   16</a></span>&#160;        <a class="code" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800ad76dbb1f34ebecacde71ea8d7b573a01">TargetNone</a>,</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800a61c42ac7737f36c0c9ee4be66feb1933">   18</a></span>&#160;        <a class="code" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800a61c42ac7737f36c0c9ee4be66feb1933">TargetUnitTag</a>,</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800af9e15c024c14d7dd4570395858a9882a">   20</a></span>&#160;        <a class="code" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800af9e15c024c14d7dd4570395858a9882a">TargetPosition</a></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    };</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#af4084f9dec15364aea72d01e6f555d56">   24</a></span>&#160;    <a class="code" href="classsc2_1_1_s_c2_type.html">AbilityID</a> <a class="code" href="structsc2_1_1_action_raw.html#af4084f9dec15364aea72d01e6f555d56">ability_id</a>;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#ac8767f8740a584a60b39d27cd3df620c">   26</a></span>&#160;    std::vector&lt;Tag&gt; <a class="code" href="structsc2_1_1_action_raw.html#ac8767f8740a584a60b39d27cd3df620c">unit_tags</a>;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#a6bd32cf44980cbaacc41fe56d338c3d7">   28</a></span>&#160;    <a class="code" href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800">TargetType</a> <a class="code" href="structsc2_1_1_action_raw.html#a6bd32cf44980cbaacc41fe56d338c3d7">target_type</a>;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#acd2f5da93f22943c4c3b1bcbeb1e9a28">   30</a></span>&#160;    Tag <a class="code" href="structsc2_1_1_action_raw.html#acd2f5da93f22943c4c3b1bcbeb1e9a28">target_tag</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#af35667a06a46069209f5f364c7530195">   32</a></span>&#160;    <a class="code" href="structsc2_1_1_point2_d.html">Point2D</a> <a class="code" href="structsc2_1_1_action_raw.html#af35667a06a46069209f5f364c7530195">target_point</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="structsc2_1_1_action_raw.html#a88b07cbf99a78d573969b0c14410ab88">ActionRaw</a>();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structsc2_1_1_action_raw.html#a9cf9e83ec9ebd6f9db4520ede7150aed">   39</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structsc2_1_1_action_raw.html#a9cf9e83ec9ebd6f9db4520ede7150aed">operator==</a>(<span class="keyword">const</span> <a class="code" href="structsc2_1_1_action_raw.html">ActionRaw</a>&amp; a)<span class="keyword"> const </span>{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordflow">if</span> (ability_id != a.<a class="code" href="structsc2_1_1_action_raw.html#af4084f9dec15364aea72d01e6f555d56">ability_id</a>) {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        }</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordflow">if</span> (target_type != a.<a class="code" href="structsc2_1_1_action_raw.html#a6bd32cf44980cbaacc41fe56d338c3d7">target_type</a>) {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordflow">if</span> (target_tag != a.<a class="code" href="structsc2_1_1_action_raw.html#acd2f5da93f22943c4c3b1bcbeb1e9a28">target_tag</a>) {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        }</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">if</span> (target_point.x != a.<a class="code" href="structsc2_1_1_action_raw.html#af35667a06a46069209f5f364c7530195">target_point</a>.x) {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        }</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordflow">if</span> (target_point.y != a.<a class="code" href="structsc2_1_1_action_raw.html#af35667a06a46069209f5f364c7530195">target_point</a>.y) {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;};</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">typedef</span> std::vector&lt;ActionRaw&gt; RawActions;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html">   62</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsc2_1_1_spatial_unit_command.html">SpatialUnitCommand</a> {</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32e">   64</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32e">TargetType</a> {</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32ea7f95fd3b8b1bbeb6221f223074dbbf9a">   66</a></span>&#160;        <a class="code" href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32ea7f95fd3b8b1bbeb6221f223074dbbf9a">TargetScreen</a>,</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32ea5c3cb6c9cf1642ef2579036167621b36">   68</a></span>&#160;        TargetMinimap</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    };</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#a305cc8a0fe2a1364ddb853c8b9a5583c">   72</a></span>&#160;    <a class="code" href="classsc2_1_1_s_c2_type.html">AbilityID</a> <a class="code" href="structsc2_1_1_spatial_unit_command.html#a305cc8a0fe2a1364ddb853c8b9a5583c">ability_id</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#a48ea9dd08e0f49f2899ed2c69f9ade16">   74</a></span>&#160;    <a class="code" href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32e">TargetType</a> <a class="code" href="structsc2_1_1_spatial_unit_command.html#a48ea9dd08e0f49f2899ed2c69f9ade16">target_type</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#aaf33b1b6790e5f5af4509a5c28ef1a9c">   76</a></span>&#160;    <a class="code" href="structsc2_1_1_point2_d_i.html">Point2DI</a> <a class="code" href="structsc2_1_1_spatial_unit_command.html#aaf33b1b6790e5f5af4509a5c28ef1a9c">target</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_unit_command.html#ae5cb8efec67b158fb1aaafd2491f38ea">   78</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structsc2_1_1_spatial_unit_command.html#ae5cb8efec67b158fb1aaafd2491f38ea">queued</a>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;};</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_camera_move.html">   82</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsc2_1_1_spatial_camera_move.html">SpatialCameraMove</a> {</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="structsc2_1_1_point2_d_i.html">Point2DI</a> center_minimap;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;};</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">enum class</span> PointSelectionType {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    PtSelect = 1,</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    PtToggle = 2,</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    PtAllType = 3,</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    PtAddAllType = 4</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;};</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_select_point.html">   99</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsc2_1_1_spatial_select_point.html">SpatialSelectPoint</a> {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="structsc2_1_1_point2_d_i.html">Point2DI</a> select_screen;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    PointSelectionType type;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_select_rect.html">  107</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsc2_1_1_spatial_select_rect.html">SpatialSelectRect</a> {</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    std::vector&lt;Rect2DI&gt; select_screen;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordtype">bool</span> select_add;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;};</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_actions.html">  113</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsc2_1_1_spatial_actions.html">SpatialActions</a> {</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_actions.html#a1ab964fd7e078894f25c7dddd881169c">  115</a></span>&#160;    std::vector&lt;SpatialUnitCommand&gt; <a class="code" href="structsc2_1_1_spatial_actions.html#a1ab964fd7e078894f25c7dddd881169c">unit_commands</a>;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_actions.html#aefbcb5de0d5ccb8871b73cf61682135d">  117</a></span>&#160;    std::vector&lt;SpatialCameraMove&gt; <a class="code" href="structsc2_1_1_spatial_actions.html#aefbcb5de0d5ccb8871b73cf61682135d">camera_moves</a>;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_actions.html#ab836b6a65f6267552aa74d403aef7f0a">  119</a></span>&#160;    std::vector&lt;SpatialSelectPoint&gt; <a class="code" href="structsc2_1_1_spatial_actions.html#ab836b6a65f6267552aa74d403aef7f0a">select_points</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="structsc2_1_1_spatial_actions.html#abc60e7ad122ae7aec22d35f960c04d12">  121</a></span>&#160;    std::vector&lt;SpatialSelectRect&gt; <a class="code" href="structsc2_1_1_spatial_actions.html#abc60e7ad122ae7aec22d35f960c04d12">select_rects</a>;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;};</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div><div class="ttc" id="structsc2_1_1_action_raw_html_acd2f5da93f22943c4c3b1bcbeb1e9a28"><div class="ttname"><a href="structsc2_1_1_action_raw.html#acd2f5da93f22943c4c3b1bcbeb1e9a28">sc2::ActionRaw::target_tag</a></div><div class="ttdeci">Tag target_tag</div><div class="ttdoc">The target of this action. Valid only when target_type == TargetUnitTag. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:30</div></div>
<div class="ttc" id="structsc2_1_1_spatial_actions_html"><div class="ttname"><a href="structsc2_1_1_spatial_actions.html">sc2::SpatialActions</a></div><div class="ttdoc">Possible actions for feature layers. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:113</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a88b07cbf99a78d573969b0c14410ab88"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a88b07cbf99a78d573969b0c14410ab88">sc2::ActionRaw::ActionRaw</a></div><div class="ttdeci">ActionRaw()</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html_a305cc8a0fe2a1364ddb853c8b9a5583c"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html#a305cc8a0fe2a1364ddb853c8b9a5583c">sc2::SpatialUnitCommand::ability_id</a></div><div class="ttdeci">AbilityID ability_id</div><div class="ttdoc">The ID of the ability to invoke. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:72</div></div>
<div class="ttc" id="structsc2_1_1_spatial_actions_html_a1ab964fd7e078894f25c7dddd881169c"><div class="ttname"><a href="structsc2_1_1_spatial_actions.html#a1ab964fd7e078894f25c7dddd881169c">sc2::SpatialActions::unit_commands</a></div><div class="ttdeci">std::vector&lt; SpatialUnitCommand &gt; unit_commands</div><div class="ttdoc">Commands to selected units. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:115</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_ac8767f8740a584a60b39d27cd3df620c"><div class="ttname"><a href="structsc2_1_1_action_raw.html#ac8767f8740a584a60b39d27cd3df620c">sc2::ActionRaw::unit_tags</a></div><div class="ttdeci">std::vector&lt; Tag &gt; unit_tags</div><div class="ttdoc">Units this action applies to. In normal use, this would be the currently selected units...</div><div class="ttdef"><b>Definition:</b> sc2_action.h:26</div></div>
<div class="ttc" id="sc2__common_8h_html"><div class="ttname"><a href="sc2__common_8h.html">sc2_common.h</a></div><div class="ttdoc">Common data types, including points, rectangles and colors. </div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a18505ce7c00e382d636339eba391d800"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800">sc2::ActionRaw::TargetType</a></div><div class="ttdeci">TargetType</div><div class="ttdoc">Type of target. Target types are mutually exclusive. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:14</div></div>
<div class="ttc" id="structsc2_1_1_point2_d_i_html"><div class="ttname"><a href="structsc2_1_1_point2_d_i.html">sc2::Point2DI</a></div><div class="ttdoc">2D integer point. </div><div class="ttdef"><b>Definition:</b> sc2_common.h:95</div></div>
<div class="ttc" id="structsc2_1_1_point2_d_html"><div class="ttname"><a href="structsc2_1_1_point2_d.html">sc2::Point2D</a></div><div class="ttdef"><b>Definition:</b> sc2_common.h:49</div></div>
<div class="ttc" id="namespacesc2_html"><div class="ttname"><a href="namespacesc2.html">sc2</a></div><div class="ttdef"><b>Definition:</b> sc2_action.h:9</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a18505ce7c00e382d636339eba391d800af9e15c024c14d7dd4570395858a9882a"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800af9e15c024c14d7dd4570395858a9882a">sc2::ActionRaw::TargetPosition</a></div><div class="ttdoc">The target is a point. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:20</div></div>
<div class="ttc" id="sc2__typeenums_8h_html"><div class="ttname"><a href="sc2__typeenums_8h.html">sc2_typeenums.h</a></div><div class="ttdoc">A list of enums provided for your convenience. </div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a18505ce7c00e382d636339eba391d800a61c42ac7737f36c0c9ee4be66feb1933"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800a61c42ac7737f36c0c9ee4be66feb1933">sc2::ActionRaw::TargetUnitTag</a></div><div class="ttdoc">The target is a unit tag, could also be a snapshot in the fog-of-war. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:18</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a18505ce7c00e382d636339eba391d800ad76dbb1f34ebecacde71ea8d7b573a01"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a18505ce7c00e382d636339eba391d800ad76dbb1f34ebecacde71ea8d7b573a01">sc2::ActionRaw::TargetNone</a></div><div class="ttdoc">No target generally means &amp;#39;self&amp;#39;, e.g., a order to make a unit. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:16</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_af4084f9dec15364aea72d01e6f555d56"><div class="ttname"><a href="structsc2_1_1_action_raw.html#af4084f9dec15364aea72d01e6f555d56">sc2::ActionRaw::ability_id</a></div><div class="ttdeci">AbilityID ability_id</div><div class="ttdoc">The ID of the ability to invoke. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:24</div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html_a48ea9dd08e0f49f2899ed2c69f9ade16"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html#a48ea9dd08e0f49f2899ed2c69f9ade16">sc2::SpatialUnitCommand::target_type</a></div><div class="ttdeci">TargetType target_type</div><div class="ttdoc">If this action should be applied to the main game screen or the minimap. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:74</div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html_aaf33b1b6790e5f5af4509a5c28ef1a9c"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html#aaf33b1b6790e5f5af4509a5c28ef1a9c">sc2::SpatialUnitCommand::target</a></div><div class="ttdeci">Point2DI target</div><div class="ttdoc">Target point on the screen or minimap, if required. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:76</div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html_ad50a0bbdbaff9ef68fbda3d817d3a32e"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32e">sc2::SpatialUnitCommand::TargetType</a></div><div class="ttdeci">TargetType</div><div class="ttdoc">If this action should apply to the screen or minimap. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:64</div></div>
<div class="ttc" id="structsc2_1_1_spatial_actions_html_ab836b6a65f6267552aa74d403aef7f0a"><div class="ttname"><a href="structsc2_1_1_spatial_actions.html#ab836b6a65f6267552aa74d403aef7f0a">sc2::SpatialActions::select_points</a></div><div class="ttdeci">std::vector&lt; SpatialSelectPoint &gt; select_points</div><div class="ttdoc">Selecting by point. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:119</div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html_ae5cb8efec67b158fb1aaafd2491f38ea"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html#ae5cb8efec67b158fb1aaafd2491f38ea">sc2::SpatialUnitCommand::queued</a></div><div class="ttdeci">bool queued</div><div class="ttdoc">Indicates if this action should replace or queue behind other actions. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:78</div></div>
<div class="ttc" id="sc2__gametypes_8h_html"><div class="ttname"><a href="sc2__gametypes_8h.html">sc2_gametypes.h</a></div><div class="ttdoc">Types used in setting up a game. </div></div>
<div class="ttc" id="structsc2_1_1_spatial_select_point_html"><div class="ttname"><a href="structsc2_1_1_spatial_select_point.html">sc2::SpatialSelectPoint</a></div><div class="ttdoc">Point selection. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:99</div></div>
<div class="ttc" id="classsc2_1_1_s_c2_type_html"><div class="ttname"><a href="classsc2_1_1_s_c2_type.html">sc2::SC2Type&lt; ABILITY_ID &gt;</a></div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_af35667a06a46069209f5f364c7530195"><div class="ttname"><a href="structsc2_1_1_action_raw.html#af35667a06a46069209f5f364c7530195">sc2::ActionRaw::target_point</a></div><div class="ttdeci">Point2D target_point</div><div class="ttdoc">The target point for this action. Valid only when target_type == TargetPosition. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:32</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a9cf9e83ec9ebd6f9db4520ede7150aed"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a9cf9e83ec9ebd6f9db4520ede7150aed">sc2::ActionRaw::operator==</a></div><div class="ttdeci">bool operator==(const ActionRaw &amp;a) const</div><div class="ttdoc">Comparison overload. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:39</div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html_ad50a0bbdbaff9ef68fbda3d817d3a32ea7f95fd3b8b1bbeb6221f223074dbbf9a"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html#ad50a0bbdbaff9ef68fbda3d817d3a32ea7f95fd3b8b1bbeb6221f223074dbbf9a">sc2::SpatialUnitCommand::TargetScreen</a></div><div class="ttdoc">Apply this action to the main game screen. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:66</div></div>
<div class="ttc" id="structsc2_1_1_spatial_actions_html_aefbcb5de0d5ccb8871b73cf61682135d"><div class="ttname"><a href="structsc2_1_1_spatial_actions.html#aefbcb5de0d5ccb8871b73cf61682135d">sc2::SpatialActions::camera_moves</a></div><div class="ttdeci">std::vector&lt; SpatialCameraMove &gt; camera_moves</div><div class="ttdoc">Camera movement. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:117</div></div>
<div class="ttc" id="structsc2_1_1_spatial_actions_html_abc60e7ad122ae7aec22d35f960c04d12"><div class="ttname"><a href="structsc2_1_1_spatial_actions.html#abc60e7ad122ae7aec22d35f960c04d12">sc2::SpatialActions::select_rects</a></div><div class="ttdeci">std::vector&lt; SpatialSelectRect &gt; select_rects</div><div class="ttdoc">Selecting by rectangles. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:121</div></div>
<div class="ttc" id="structsc2_1_1_spatial_unit_command_html"><div class="ttname"><a href="structsc2_1_1_spatial_unit_command.html">sc2::SpatialUnitCommand</a></div><div class="ttdoc">An action (command or ability) applied to selected units when using feature layers or the rendered in...</div><div class="ttdef"><b>Definition:</b> sc2_action.h:62</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html"><div class="ttname"><a href="structsc2_1_1_action_raw.html">sc2::ActionRaw</a></div><div class="ttdoc">An action (command or ability) applied to a unit or set of units. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:12</div></div>
<div class="ttc" id="structsc2_1_1_spatial_camera_move_html"><div class="ttname"><a href="structsc2_1_1_spatial_camera_move.html">sc2::SpatialCameraMove</a></div><div class="ttdoc">Where to move the camera to on the minimap. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:82</div></div>
<div class="ttc" id="structsc2_1_1_action_raw_html_a6bd32cf44980cbaacc41fe56d338c3d7"><div class="ttname"><a href="structsc2_1_1_action_raw.html#a6bd32cf44980cbaacc41fe56d338c3d7">sc2::ActionRaw::target_type</a></div><div class="ttdeci">TargetType target_type</div><div class="ttdoc">Which target fields are valid. </div><div class="ttdef"><b>Definition:</b> sc2_action.h:28</div></div>
<div class="ttc" id="structsc2_1_1_spatial_select_rect_html"><div class="ttname"><a href="structsc2_1_1_spatial_select_rect.html">sc2::SpatialSelectRect</a></div><div class="ttdef"><b>Definition:</b> sc2_action.h:107</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
